<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:py="http://genshi.edgewall.org/"
      xmlns:xi="http://www.w3.org/2001/XInclude">

  <xi:include href="tb-master.html" />

<head>
	<meta content="text/html; charset=UTF-8" http-equiv="content-type" />
  	<title></title>
  	${tmpl_context.datatables()}
	<script type="text/javascript" charset="utf-8">
		$(document).ready(function() {
			$('#teamstable').dataTable();
		} );
	</script>
</head>
<body>

		<div>
			<table id="teamstable">
				<thead>
					<tr>
						<th>id</th>
						<th>Name</th>
						<th>Phone</th>
						<th>Mail</th>
						<th>Vat</th>
						<th>Address</th>
					</tr>
				</thead>
				<tbody>
					<tr py:for="t in user.teams">
						<td>
							${t.team_id}
						</td>
						<td  >
							<a href="${root_url}/team/index/${t.team_alias}">${t.title}</a>
						</td>
						<td>
							${t.phone}
						</td>
						<td>
							${t.mail}
						</td>
						<td>
							${t.vat_code}
						</td>
						<td>
							<py:if test="t.address">${t.address.google_address}</py:if>
						</td>
					</tr>
				</tbody>
			</table>
		</div>

<script type="text/javascript">
var allDialogs = [];
function create(href, options) {
options = $.extend({title: "Dialog"}, options || {});
var dialog = new Boxy.load(href, options); /*new Boxy(content, options);*/
allDialogs.push(dialog);
return false;
}
</script>

</body>
</html>
